import "package:flutter/material.dart";
import "package:myapp/_views/home/widget/animate/animate.class.dart";

class AnimateCard3 extends StatelessWidget {
  final AnimateHotItem item;
  const AnimateCard3(this.item, {super.key});
  @override
  Widget build(BuildContext context) {
    return SizedBox(
      width: 82,
      child: Column(
        children: [
          Padding(
            padding: const EdgeInsets.only(bottom: 4),
            child: SizedBox(
              width: double.infinity,
              height: 110,
              child: ClipRRect(
                borderRadius: BorderRadius.circular(6),
                child: Image.asset(
                  item.coverUrl,
                  fit: BoxFit.cover,
                ),
              ),
            ),
          ),
          Padding(
            padding: const EdgeInsets.only(top: 1),
            child: Text(
              item.title,
              maxLines: 1,
              overflow: TextOverflow.ellipsis,
              style: const TextStyle(fontSize: 12),
            ),
          ),
          Text(
            item.subTitle,
            maxLines: 1,
            overflow: TextOverflow.ellipsis,
            style: const TextStyle(
                fontSize: 12, color: Color.fromARGB(255, 94, 94, 94)),
          ),
        ],
      ),
    );
  }
}
